<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- 
    JSP Name : nt_300_13.jsp
    Description : 이벤트참여수정
    author Seung Won
    since 2012. 7. 19.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 7. 19.     Seung Won     최초 생성
--%>
<%@ include file="/WEB-INF/jsp/co/mn/include/declare.jspf" %>
<%@ include file="/WEB-INF/jsp/co/mn/include/session.jspf" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="/WEB-INF/jsp/co/mn/include/header.jspf" %>
<script type="text/javaScript" language="javascript">
<!--
$(document).ready(function() {
    /* form validation check */
    onloadCharCheck();
    
    $("#listButn").bind("click", moveListPage);     // 목록
    $("#updButn").bind("click", moveUpdPage);       // 수정
    $("#prtButn").bind("click", printPage);       // 수정
    $("#cnclButn").bind("click", formIniz);         /* Form 초기화 */
    
    $("input[name='amt']").keypress(function(event){
        if (event.which && (event.which > 47 && event.which < 58 || event.which == 8)) {
        } else {
            event.preventDefault();
         }
    }); 
    
    $("input[name='amt']").blur(function(){
        
        var totAmt = 0;
        for (var i=0; i<$("input[name='amt']").length;i++) {
            totAmt = totAmt + Number($("input[name='amt']").eq(i).val().replace(/\,/g, ""));
        }
        
        $("#totAmt").val(moneyType(totAmt));
     });
});

/*
 * 통화 표시
 */
function moneyType(argVal){
    
    var reg = /(^[+-]?\d+)(\d{3})/;
    argVal += '';
    while (reg.test(argVal))
        argVal = argVal.replace(reg, '$1' + ',' + '$2');

    return argVal;

}


/*
 * 검색
 */
function moveListPage() {
    $("#mainForm").attr('action','/nt_300_11.do').submit();
}

/*
 * 수정
 */
function moveUpdPage() {
    
    var arrChk = "0";
    var arrChkSzVal = "";
    var arrChkQtyVal = "";
    
    if (!validateForm($("#mainForm"))) {
        return;
    }
    
    if($("#pttSmry").val().length == 0) {
        alert("필수항목 입니다.");
        $("#pttSmry").focus();
        return;
    }
    
    $("#aplcEml").val($("#aplcEml1").val()+"@"+$("#aplcEml2").val());
    $("#instCcpc").val($("#instCcpc1").val()+"-"+$("#instCcpc2").val()+"-"+$("#instCcpc3").val());
    
    if($("#pttSmry").val().length > 200) {
        alert("200자 이내로 작성하여주세요");
        $("#pttSmry").focus();
        return;
    }
    
    if($("#pttPart").val().length > 200) {
        alert("200자 이내로 작성하여주세요");
        $("#pttPart").focus();
        return;
    }
    for (var i = 0; i < $("input[id='arrSz']").length; i++){
        if ($("input[id='arrSz']").eq(i).is(":checked") == true ) {
            
            if ($("input[id='arrQty']").eq(i).val() == "" ) {
                alert($("input[id='arrQty']").eq(i).attr('title')+" 수량을 입력해 주세요");
                $("input[id='arrQty']").eq(i).focus();
                return;
            }
            
            arrChkSzVal = arrChkSzVal + $("input[id='arrSz']").eq(i).val() + ",";
            arrChkQtyVal = arrChkQtyVal + $("input[id='arrQty']").eq(i).val() + ",";
            arrChk = "1";
        }
    }
    
    if (arrChkSzVal != "") {
        arrChkSzVal = arrChkSzVal.substring(0, arrChkSzVal.length-1);
    }
    
    if (arrChkQtyVal != "") {
        arrChkQtyVal = arrChkQtyVal.substring(0, arrChkQtyVal.length-1);
    }
    
    
    $("#pcrpUnifSz").val(arrChkSzVal);
    $("#pcrpUnifQty").val(arrChkQtyVal);
    
    $("#mainForm").attr('target','comIframe');
    $("#mainForm").attr('action','/nt_300_14.do').submit();
}


function printPage(){
	var left = (screen.width/2)-(800/2); 
    var top = (screen.height/2)-(700/2); 
    var targetWin = window.open ('', 'targetWin', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=800px, height=700px, top='+top+', left='+left);
    $("#mainForm").attr('target','targetWin');
    $("#mainForm").attr('action','/nt_300_23.do').submit();
}
/*
 * Form 초기화
 */
function formIniz() {
    document.mainForm.reset();
}

//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>HMC GLOBAL CSR</title>
</head>
<body>
    <div id="contents">
        <form id="mainForm" name="mainForm" method="post">
        <input type="hidden" id="currentPageNo" name="currentPageNo" value="${rqInfo.currentPageNo}" />
        <input type="hidden" id="parp03Idx" name="parp03Idx" value="${result.parp03Idx }" />
        <input type="hidden" id="evntIdx" name="evntIdx" value="${result.evntIdx }" />
        <input type="hidden" id="mlgScnCd" name="mlgScnCd" value="KO" />
        <p class="msgTbtitle"><strong>H-Volunteer Designer 활동신청</strong></p>
        <table border="1" class="frmTable" summary="H-Volunteer Designer 활동신청의 신청형태,팀이름,신청자이름,팀원정보(부서&#47;이름),소속,이메일을 입력또는 수정하는 표">
            <col width="25%" />
            <col width="75%" />
            <tbody>
                <tr>
                    <th>신청형태</th>
                    <td>
                        <span class="radioArea">
                            <label for="checkPerson"><input type="radio" id="pttShap1" name="pttShap" value="1" <c:if test="${result.pttShap == null || result.pttShap == '1'}">checked</c:if> />개인</label>
                            <label for="checkTeam"><input type="radio" id="pttShap1" name="pttShap" value="2" <c:if test="${result.pttShap == '2'}">checked</c:if> />팀</label>
                        </span>
                    </td>
                </tr>
                <tr class="team lock">
                    <th>팀이름</th>
                    <td><input type="text" class="frmName" id="teamNm" name="teamNm" value="${result.teamNm }" maxbyte="100" readonly="readonly" /> <span class="desc">* 함께 활동하는 팀원이 있다면 팀 이름을 적어주세요</span></td>
                </tr>
                <tr>
                    <th>신청자 이름</th>
                    <td><input type="text" class="frmCall" id="aplcNm" name="aplcNm" value="${result.aplcNm }" title="신청자이름" maxbyte="40" nullable="true" /></td>
                </tr>
                <tr class="team lock">
                    <th>팀원 수</th>
                    <td>임직원 <input type="text" class="person" id="tmmrQty" name="tmmrQty" value="${result.tmmrQty }" maxlength="3" readonly="readonly" chartype="int" /> 명 <span>외부인원 <input type="text" class="person" id="oordQty" name="oordQty" value="${result.oordQty }" maxlength="3" readonly="readonly" chartype="int" /> 명</span></td>
                </tr>
                <tr>
                    <th>소속</th>
                    <td><input type="text" id="blns" name="blns" value="${result.blns }" maxbyte="100" title="소속" nullable="true" /></td>
                </tr>
                <tr>
                    <th>휴대전화</th>
                    <td>
                        <select name="aplcHp1">
                            <option value="010" <c:if test="${result.aplcHp1 == '010' }">selected</c:if> >010</option>
                            <option value="011" <c:if test="${result.aplcHp1 == '011' }">selected</c:if> >011</option>
                            <option value="016" <c:if test="${result.aplcHp1 == '016' }">selected</c:if> >016</option>
                            <option value="017" <c:if test="${result.aplcHp1 == '017' }">selected</c:if> >017</option>
                            <option value="019" <c:if test="${result.aplcHp1 == '019' }">selected</c:if> >019</option>
                        </select> - <input type="text" class="frmCall" title="앞자리" id="aplcHp2" name="aplcHp2" value="${result.aplcHp2 }" maxlength="4" nullable="true" chartype="int" /> - 
                        <input type="text" class="frmCall" title="뒤 4자리" id="aplcHp3" name="aplcHp3" value="${result.aplcHp3 }" maxlength="4" nullable="true" chartype="int" />
                    </td>
                </tr>
                <tr>
                    <th>이메일</th>
                    <td><input type="text" class="frmEmail" id="aplcEml1" name="aplcEml1" value="${arrAplcEml[0] }" maxlength="14" nullable="true" title="이메일" style="ime-mode:inactive" />&nbsp;@&nbsp;
                    <input type="text" class="frmEmail" id="aplcEml2" name="aplcEml2" value="${arrAplcEml[1] }" maxlength="14" nullable="true" title="이메일" style="ime-mode:inactive" />
                    <input type="hidden" id="aplcEml" name="aplcEml" value="${result.aplcEml }" />
                  </td>
                </tr>
            </tbody>
        </table>
        <p class="msgTbtitle"><strong>봉사활동 관련내용</strong></p>
        <table border="1" class="frmTable" summary="봉사활동 관련내용의 활동명,활동시기,활동장소,협조기관유무,기관 명,기관 연락처, 활동주기,활동분야,활동내용 등을 입력또는 수정하는 표">
            <col width="10%" />
            <col width="15%" />
            <col width="75%" />
            <tbody>
                <tr>
                    <th colspan="2">활동명</th>
                    <td><input type="text" id="gactNm" name="gactNm" value="${result.gactNm }" maxbyte="100" title="활동명" nullable="true" />
                        <span class="desc blk">* 활동의 특성을 잘 살린 활동명을 지어 적어주세요.</span>
                    </td>
                </tr>
                <tr>
                    <th colspan="2">활동시기</th>
                    <td>
                        <select id="gactEraStrtY" name="gactEraStrtY">
                            <c:forEach var="list" items="${yearList }">
                            <option value="${list }" <c:if test="${result.gactEraStrtY == list }">selected</c:if> >${list }년</option>
                            </c:forEach>
                        </select>
                        <select id="gactEraStrtM" name="gactEraStrtM">
                            <c:forEach var="list" items="${monList }">
                            <option value="${list }" <c:if test="${result.gactEraStrtM == list }">selected</c:if> >${list }월</option>
                            </c:forEach>
                        </select>
                        <select id="gactEraStrtD" name="gactEraStrtD">
                            <c:forEach var="list" items="${dayList }">
                            <option value="${list }" <c:if test="${result.gactEraStrtD == list }">selected</c:if> >${list }일</option>
                            </c:forEach>
                        </select>&nbsp;&#126;
                        <select id="gactEraFnhY" name="gactEraFnhY">
                            <c:forEach var="list" items="${yearList }">
                            <option value="${list }" <c:if test="${result.gactEraFnhY == list }">selected</c:if> >${list }년</option>
                            </c:forEach>
                        </select>
                        <select id="gactEraFnhM" name="gactEraFnhM">
                            <c:forEach var="list" items="${monList }">
                            <option value="${list }" <c:if test="${result.gactEraFnhM == list }">selected</c:if> >${list }월</option>
                            </c:forEach>
                        </select>
                        <select id="gactEraFnhD" name="gactEraFnhD">
                            <c:forEach var="list" items="${dayList }">
                            <option value="${list }" <c:if test="${result.gactEraFnhD == list }">selected</c:if> >${list }일</option>
                            </c:forEach>
                        </select>
                    </td>
                </tr>
                <tr>
                    <th colspan="2">활동장소</th>
                    <td>
                        <input type="text" id="gactPl" name="gactPl" value="${result.gactPl }" maxbyte="50" title="활동장소" nullable="true" />
                    </td>
                </tr>
                <tr>
                    <th colspan="2">협조기관 유무</th>
                    <td>
                        <span class="radioArea">
                            <label for="checkY"><input type="radio" id="ccdInstYn1" name="ccdInstYn" value="Y" <c:if test="${result.ccdInstYn == null || result.ccdInstYn == 'Y'}">checked</c:if> />Y</label>
                            <label for="checkN"><input type="radio" id="ccdInstYn2" name="ccdInstYn" value="N" <c:if test="${result.ccdInstYn == 'N'}">checked</c:if> />N</label>
                        </span>
                        <span class="desc blk">* 활동을 도와주고 함께해줄 기관이 있다면 Y, 없다면 N에 체크해주세요.<br />(Y에 체크하신 분은 기관명화 연락처를 기재해주세요.)</span>
                    </td>
                </tr>
                <tr>
                    <th colspan="2">기관 명</th>
                    <td>
                        <input type="text" id="instNm" name="instNm" value="${result.instNm }" maxbyte="25" title="기관명" nullable="true" />
                    </td>
                </tr>
                <tr>
                    <th colspan="2">기관연락처</th>
                    <td>
                        <select id="instCcpc1" name="instCcpc1">
                            <option value="02" <c:if test="${arrInstCcpc[0] == '02' }">selected</c:if> >02</option>
                            <option value="070" <c:if test="${arrInstCcpc[0] == '070' }">selected</c:if> >070</option>
                            <option value="031" <c:if test="${arrInstCcpc[0] == '031' }">selected</c:if> >031</option>
                            <option value="032" <c:if test="${arrInstCcpc[0] == '032' }">selected</c:if> >032</option>
                            <option value="033" <c:if test="${arrInstCcpc[0] == '033' }">selected</c:if> >033</option>
                            <option value="041" <c:if test="${arrInstCcpc[0] == '041' }">selected</c:if> >041</option>
                            <option value="042" <c:if test="${arrInstCcpc[0] == '042' }">selected</c:if> >042</option>
                            <option value="043" <c:if test="${arrInstCcpc[0] == '043' }">selected</c:if> >043</option>
                            <option value="051" <c:if test="${arrInstCcpc[0] == '051' }">selected</c:if> >051</option>
                            <option value="052" <c:if test="${arrInstCcpc[0] == '052' }">selected</c:if> >052</option>
                            <option value="053" <c:if test="${arrInstCcpc[0] == '053' }">selected</c:if> >053</option>
                            <option value="061" <c:if test="${arrInstCcpc[0] == '061' }">selected</c:if> >061</option>
                            <option value="062" <c:if test="${arrInstCcpc[0] == '062' }">selected</c:if> >062</option>
                            <option value="063" <c:if test="${arrInstCcpc[0] == '063' }">selected</c:if> >063</option>
                        </select> - <input type="text" class="frmCall" title="앞자리" id="instCcpc2" name="instCcpc2" value="${arrInstCcpc[1] }" maxlength="4" nullable="true" chartype="int" /> - 
                        <input type="text" class="frmCall" title="뒤 4자리" id="instCcpc3" name="instCcpc3" value="${arrInstCcpc[2] }" maxlength="4" nullable="true" chartype="int" />
                        <input type="hidden" id="instCcpc" name="instCcpc" value="${result.instCcpc }" />
                    </td>
                </tr>
                <tr>
                    <th colspan="2">활동주기</th>
                    <td>
                        <span class="checkArea">
                            <label for="checkRegular1"><input type="radio" value="1" id="gactCyclCd1" name="gactCyclCd" value="1" <c:if test="${result.gactCyclCd == null || result.gactCyclCd == '1'}">checked</c:if> /> 일회봉사</label>
                            <label for="checkRegular2"><input type="radio" value="2" id="gactCyclCd2" name="gactCyclCd" value="2" <c:if test="${result.gactCyclCd == '2'}">checked</c:if> /> 비정기적</label>
                            <label for="checkRegular3"><input type="radio" value="3" id="gactCyclCd3" name="gactCyclCd" value="3" <c:if test="${result.gactCyclCd == '3'}">checked</c:if> /> 정기적</label>
                        </span>
                    </td>
                </tr>
                <tr>
                    <th colspan="2">신청동기</th>
                    <td><input type="text" id="pttMotv" name="pttMotv" value="${result.pttMotv }" maxbyte="200" nullable="true" /></td>
                </tr>
                <tr>
                    <th colspan="2">활동분야</th>
                    <td>
                        <span class="checkField">
                            <span class="desc blk">* 아래 4가지 중 선택 하세요.</span>
                            <label for="checkField1"><input type="radio" value="1" id="pttSpheCd1" name="pttSpheCd" value="1" <c:if test="${result.pttSpheCd == null || result.pttSpheCd == '1'}">checked</c:if> /><strong>사회복지 프로그램 지원 : </strong>도시락 배달, 여가 프로그램 지원, 나들이 지원, 말벗봉사, 기관청소, 환경미화, 외출지원, 목욕봉사 등 </label>
                            <label for="checkField2"><input type="radio" value="2" id="pttSpheCd2" name="pttSpheCd" value="2" <c:if test="${result.pttSpheCd == '2'}">checked</c:if> /><strong>재능나눔 : </strong>소규모 공연봉사, 이미용봉사, 벽화그리기 활동, 통역봉사, 홈페이지 제작 지원, 이미용 봉사 등</label>
                            <label for="checkField3"><input type="radio" value="3" id="pttSpheCd3" name="pttSpheCd" value="3" <c:if test="${result.pttSpheCd == '3'}">checked</c:if> /><strong>테마봉사활동 : </strong>특별절기(추석, 크리스마스, 장애인의 날 등) 나 사회적 이슈(경제, 문화, 환경 등)을 주제로 한 활동</label>
                            <label for="checkField4"><input type="radio" value="4" id="pttSpheCd4" name="pttSpheCd" value="4" <c:if test="${result.pttSpheCd == '4'}">checked</c:if> /><strong>기타 : </strong>위 분야 이외에 자율적으로 기획한 활동</label>
                        </span>
                        <span class="desc blk">* 일회봉사 : 한 번 활동<br />* 비정기적 : 일 회 이상 활동하지만 정기적 활동은 아닌 경우<br />* 정기적 : 매주, 월 단위로 정기 활동을 하는 경우</span>
                    </td>
                </tr>
                <tr>
                    <th rowspan="3">활동<br />내용</th>
                    <th class="subTitle">활동개요</th>
                    <td><textarea rows="4" cols="85" class="applyTxtarea" id="pttSmry" name="pttSmry">${result.pttSmry }</textarea><span class="desc blk">* 활동개요-계획하신 활동에 대한 설명을 간락히 적어주세요.</span></td>
                </tr>
                <tr>
                    <td class="subThead">임직원의<br />역할</td>
                    <td><textarea rows="4" cols="85" class="applyTxtarea" id="pttPart" name="pttPart">${result.pttPart }</textarea><span class="desc blk">* 활동에서 임직원의 역할을 적어주세요.(200자 이내로 작성해주세요)</span></td>
                </tr>
                <tr>
                    <th class="subTitle">세부내용</th>
                    <td class="subTable">
                        <table border="1" class="frmTable" summary="세부내용의 세부활동내용,대상인원, 임직원인원, 기타를 입력또는 수정하는 표">
                            <colgroup>
                                <col width="33%" />
                                <col width="34%" />
                                <col width="33%" />
                            </colgroup>
                            <thead>
                                <tr>
                        
                                    <th>세부활동내용</th>
                                    <th>대상인원</th>
                                    <th>임직원인원</th>
                                </tr>
                            </thead>
                            <tbody>
                                <c:choose>
                                    <c:when test="${hvt01List != null && !empty hvt01List }">
                                        <c:forEach var="hvt01List" items="${hvt01List }" varStatus="status">
                                <tr>
                                    <td><input type="text" value="${hvt01List.fpGactHis }" id="fpGactHis" name="fpGactHis" maxbyte="100" nullable="true" title="세부활동내용" /></td>
                                    <td><input type="text" value="${hvt01List.subjCpsn }" id="subjCpsn" name="subjCpsn" maxbyte="5" nullable="true" title="대상인원" /></td>
                                    <td><input type="text" value="${hvt01List.eeCpsn }" id="eeCpsn" name="eeCpsn" maxbyte="5" nullable="true"  title="임직원 인원" /></td>
                                </tr>    
                                        </c:forEach>
                                    </c:when>    
                                    <c:otherwise>
                                <tr>
                                    <td><input type="text" value="" id="fpGactHis" name="fpGactHis" maxbyte="100" nullable="true" title="세부활동내용" /></td>
                                    <td><input type="text" value="" id="subjCpsn" name="subjCpsn" maxbyte="5" nullable="true" title="대상인원" /></td>
                                    <td><input type="text" value="" id="eeCpsn" name="eeCpsn" maxbyte="5" nullable="true"  title="임직원 인원" /></td>
                                </tr>
                                <tr>
                                    <td><input type="text" value="" id="fpGactHis" name="fpGactHis" maxbyte="100" nullable="true" title="세부활동내용" /></td>
                                    <td><input type="text" value="" id="subjCpsn" name="subjCpsn" maxbyte="5" nullable="true" title="대상인원" /></td>
                                    <td><input type="text" value="" id="eeCpsn" name="eeCpsn" maxbyte="5" nullable="true"  title="임직원 인원" /></td>
                                </tr>
                                <tr>
                                    <td><input type="text" value="" id="fpGactHis" name="fpGactHis" maxbyte="100" nullable="true" title="세부활동내용" /></td>
                                    <td><input type="text" value="" id="subjCpsn" name="subjCpsn" maxbyte="5" nullable="true" title="대상인원" /></td>
                                    <td><input type="text" value="" id="eeCpsn" name="eeCpsn" maxbyte="5" nullable="true"  title="임직원 인원" /></td>
                                </tr>
                                <tr>
                                    <td><input type="text" value="" id="fpGactHis" name="fpGactHis" maxbyte="100" nullable="true" title="세부활동내용" /></td>
                                    <td><input type="text" value="" id="subjCpsn" name="subjCpsn" maxbyte="5" nullable="true" title="대상인원" /></td>
                                    <td><input type="text" value="" id="eeCpsn" name="eeCpsn" maxbyte="5" nullable="true"  title="임직원 인원" /></td>
                                </tr> 
                                    </c:otherwise>
                                </c:choose>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <th colspan="2">예산</th>
                    <td>
                        <div class="appendTable">
                            <div class="btnRows"><button type="button" class="appendRow"><img src="/img/mng/btn/btn_row_apd.gif" alt="추가" /></button><button type="button" class="deleteRow"><img src="/img/mng/btn/btn_row_del.gif" alt="삭제" /></button></div>
                            <table border="1" class="frmTable" summary="예산의 항목, 세부내용, 금액.비고를 입력또는 수정하는 표">
                                <colgroup><col width="100%" /></colgroup>
                                <tbody>
                                    <c:choose>
                                        <c:when test="${hvt02List != null && !empty hvt02List }">
                                            <c:forEach var="hvt02List" items="${hvt02List }" varStatus="status">
                                    <tr id="lineAppend">
                                        <td>
                                            <p><span>세부내용</span><input type="text" id="fpSbc" name="fpSbc" value="${hvt02List.fpSbc }" nullable="true"  title="세부 내용"/></p>
                                            <p><span>금액</span><input type="text" id="amt" name="amt" value="${fn:trim(hvt02List.amt) }" dir="rtl" chartype="money" nullable="true" title="금액"/></p>
                                        </td>
                                    </tr>    
                                            </c:forEach>
                                        </c:when>    
                                        <c:otherwise>
                                    <tr id="lineAppend">
                                        <td>
                                            <p><span>세부내용</span><input type="text" id="fpSbc" name="fpSbc" value="" nullable="true" title="세부내용"/></p>
                                            <p><span>금액</span><input type="text" id="amt" name="amt" value="" dir="rtl" chartype="money" nullable="true" title="금액"/></p>
                                        </td>
                                    </tr>
                                        </c:otherwise>
                                    </c:choose>
                                </tbody>
                                <tfoot>
                                    <tr>
                                        <td class="sum"><p><span>합계</span><input type="text" id="totAmt" name="totAmt" value="${fn:trim(totAmt) }" dir="rtl" style="text-align:right" readOnly /></p></td>
                                    </tr>
                                </tfoot>
                            </table>
                        </div>
                    </td>
                </tr>
                <tr>
                    <th colspan="2">기부금영수증<br />발행형태</th>
                    <td>
                        <span class="checkArea">
                            <label for="checkReceipt1"><input type="radio" id="gftmRvchIShap1" name="gftmRvchIShap" value="1" <c:if test="${result.gftmRvchIShap == null || result.gftmRvchIShap == '1'}">checked</c:if> />개인 발행</label>
                            <label for="checkReceipt2"><input type="radio" id="gftmRvchIShap2" name="gftmRvchIShap" value="2" <c:if test="${result.gftmRvchIShap == '2'}">checked</c:if> />협조기관 발행</label>
                        </span>
                        <span class="desc blk">* 개인 : 협조기관 없이 팀 자체적으로 활동하고, 예산 지원 받는 경우<br />* 협조기관 발행 : 협조기관이 있어 예산을 기관에서 지원받는 경우<br />* 예금주가 기관명이 아닐 경우, 법인 사업자등록증 첨부 필</span>
                    </td>
                </tr>
                <tr>
                <td class="subThead" colspan="2">봉사 조끼 신청</td>
                <td >
                    <span class="checkArea checkFild">
                        <span><label for="size1"><input type="checkbox" id="arrSz" name="arrSz" value="90" ${arrUnifSz[0] } /><strong>90 size</label><input type="text" class="size" value="${arrUnifQty[0]}" title="90 조끼 수량" id="arrQty" name="arrQty" chartype="int" maxlength="3" />개 &nbsp;</span>
                        <span><label for="size2"><input type="checkbox" id="arrSz" name="arrSz" value="95" ${arrUnifSz[1] } /><strong>95 size</label><input type="text" class="size" value="${arrUnifQty[1]}" title="95 조끼 수량" id="arrQty" name="arrQty" chartype="int" maxlength="3" />개 &nbsp;</span><br />
                        <span><label for="size3"><input type="checkbox" id="arrSz" name="arrSz" value="100" ${arrUnifSz[2] } /><strong>100 size</label><input type="text" class="size" value="${arrUnifQty[2]}" title="100 조끼 수량" id="arrQty" name="arrQty" chartype="int" maxlength="3" />개 &nbsp;</span>
                        <span><label for="size4"><input type="checkbox" id="arrSz" name="arrSz" value="105" ${arrUnifSz[3] } /><strong>105 size</label><input type="text" class="size" value="${arrUnifQty[3]}" title="105 조끼 수량" id="arrQty" name="arrQty" chartype="int" maxlength="3" />개 &nbsp;</span><br />
                        <span><label for="size5"><input type="checkbox" id="arrSz" name="arrSz" value="110" ${arrUnifSz[4] } /><strong>110 size</label><input type="text" class="size" value="${arrUnifQty[4]}" title="110 조끼 수량" id="arrQty" name="arrQty" chartype="int" maxlength="3" />개 &nbsp;</span>
                        <span><label for="size6"><input type="checkbox" id="arrSz" name="arrSz" value="115" ${arrUnifSz[5] } /><strong>115 size</label><input type="text" class="size" value="${arrUnifQty[5]}" title="115 조끼 수량" id="arrQty" name="arrQty" chartype="int" maxlength="3" />개 &nbsp;</span>
                    </span>
                    <input type="hidden" id="pcrpUnifSz" name="pcrpUnifSz" >
                    <input type="hidden" id="pcrpUnifQty" name="pcrpUnifQty" >
                </td>
            </tr>
                
            </tbody>
        </table>
        <div class="signArea">
            <p>본인은 현대자동차의 임직원으로서 자원봉사 활동을 하고자 신청하며 활동 대상자를 존중하고 이해하고자 노력합니다.<br />성실하고 책임감 있는 자세로 활동에 임하고, 활동 결과를 성실히 결과보고 할 것을 약속합니다.</p>
            <p class="date">${rgstDt[0] }년<input type="text" value="${rgstDt[1] }" />월<input type="text" value="${rgstDt[2] }" />일</p>
            <p class="applicant">신청자<input type="text" value="${result.aplcNm }" /></p>
        </div>
        </form>
        <div class="btnBoard">
            <span class="flow">
                <input type="submit" id="listButn" title="목록" value="목록" />
            </span>
            <span class="reverse">
                <input type="submit" id="prtButn" title="프린트" value="프린트" />
                <input type="submit" id="updButn" title="수정" value="수정" />
                <input type="submit" id="cnclButn" title="취소" value="취소" />
            </span>
        </div>
    </div>

    <%
    // 등록 process 를 위한 iFrame Start
    %>
    <iframe name="comIframe" id="comIframe" src="about:blank" height="0" width="0"></iframe>
    <%
    // 등록 process 를 위한 iFrame END
    %>
</body>
</html>
<script>
<c:if test="${result.pttShap == '2'}">
$(".team").removeClass("lock");
$('.team input[type="text"]').removeAttr("readonly");
</c:if>
</script>